import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

//配置默认地址，以后使用axios时，自动拼接地址
axios.defaults.baseURL='http://localhost:8081/'
//设置请求的允许最长时间，超时则报错
axios.defaults.timeout=3000
Vue.prototype.$axios = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
